<%@ page import="edu.uow.devdocs.DevelopmentChecklist" %>



<div class="fieldcontain ${hasErrors(bean: developmentChecklistInstance, field: 'description', 'error')} ">
	<label for="description">
		<g:message code="developmentChecklist.description.label" default="Description" />
		
	</label>
	<g:textField name="description" maxlength="255" value="${developmentChecklistInstance?.description}"/>
</div>

<g:hiddenField name="developmentTask.id" value="${developmentChecklistInstance?.id}" />
<g:hiddenField name="version" value="${developmentChecklistInstance?.version}" />
<g:hiddenField name="project" value="${developmentChecklistInstance?.project}" />


<div class="fieldcontain ${hasErrors(bean: developmentChecklistInstance, field: 'status', 'error')} required">
	<label for="status">
		<g:message code="developmentChecklist.status.label" default="Status" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="status" name="status.id" from="${edu.uow.devdocs.DevelopmentChecklistStatus.list()}" optionKey="id" required="" value="${developmentChecklistInstance?.status?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: developmentChecklistInstance, field: 'checklist', 'error')} required">
	<label for="checklist">
		<g:message code="developmentChecklist.checklist.label" default="Checklist" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="checklist" name="checklist.id" from="${edu.uow.devdocs.Checklist.list()}" optionKey="id" required="" value="${developmentChecklistInstance?.checklist?.id}" class="many-to-one"/>
</div>

	<br/>
	
	<g:if test="${developmentChecklistInstance?.checklist?.renderHtmlFlag }">
		<ckeditor:config var="toolbar_Mytoolbar">
		[
		    [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ],
		    [ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ],
		    [ 'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField' ],
		    [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ],
		    [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ],
		    [ 'Table','HorizontalRule','Smiley','SpecialChar','PageBreak' ],
		    [ 'Styles','Format','Font','FontSize' ],
		    [ 'TextColor','BGColor' ],
		    [ 'Maximize', 'ShowBlocks','-','About' ]
		    
		]
		</ckeditor:config>
		<script>if (CKEDITOR.instances['checklistContent']) {delete CKEDITOR.instances['checklistContent']}</script>
		<ckeditor:editor name="checklistContent" toolbar="Mytoolbar">
		<%= developmentChecklistInstance?.checklistContent %>
		</ckeditor:editor>
	</g:if>
	<g:if test="${! developmentChecklistInstance?.checklist?.renderHtmlFlag }">
		<g:textArea cols="80" name="checklistContent">${developmentChecklistInstance?.checklistContent}</g:textArea>
	</g:if>

